# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo8.04
# Description:
# Author:       $赵怡蕾
# Date:         2019/3/4
#-------------------------------------------------------------------------------

# 父类
class ParentClass:
    def method1(self):
        print("method1")
# 子类
class ChildClass(ParentClass):
    def method2(self):
        print("method2")

child = ChildClass()
child.method1()          # 调用父类的method1方法
child.method2()